<?php echo $this->Session->flash(); ?>
<div id="loading" style="display: none;">
    <?php echo $html->image('loading.gif', array('border' => "0", 'align' => 'center')); ?>
</div>
<h1>PANELISTAS</h1>
<table id="tabla">
    <thead>
        <tr>
            <th>Nombre</th>
            <th>Primer apellido</th>
            <th>Segundo apellido</th>
            <th>Rol</th>
            <th colspan="1">Acciones</th>
        </tr>
    </thead>
    <tbody>
        <?php
        foreach ($panelistas as $panelista):
            ?>
            <tr>
                <td><?php echo $panelista['User']['nombre'] ?></td>
                <td><?php echo $panelista['User']['primer_apellido'] ?></td>
                <td><?php echo $panelista['User']['segundo_apellido'] ?></td>
                <td><?php echo $panelista['FormActUser']['rol'] ?></td>
                <td><?php echo $ajax->link('Eliminar ', array('Controller' => 'FormActUsers', 'action' => 'delete', $panelista['FormActUser']['id'], $form_act_id), array('class' => 'actions', 'update' => 'content', 'indicator' => 'loading', 'escape' => false), '¿Desea eliminar el panelista?'); ?></td>
            </tr>
            <?php
        endforeach;
        ?>
    </tbody>
</table>
<br><?php echo $ajax->link('Adicionar ', array('Controller' => 'FormActUsers', 'action' => 'add', $form_act_id), array('class' => 'actions', 'update' => 'content', 'indicator' => 'loading', 'escape' => false), "¿Desea agregar un nuevo panelista?"); ?>
<br><br><br>
<br><br><br>
<?php echo $ajax->link($html->image('regresar.gif', array('width' => '30', 'heigth' => '30', 'alt' => 'Regresar', 'title' => 'regresar')), array('controller' => 'formActs', 'action' => 'index'), array('update' => 'content', 'escape' => false)); ?>
